home *** CD-ROM | disk | FTP | other *** search
-
- ----------------------------------------------------------------------------
- | * SETPRN * A printer utility for the IBM PC & PC-XT. V. T. Bly 12/11/83 |
- ----------------------------------------------------------------------------
-
- SUMMARY
- -------
- SETPRN provides an easy method of setting printer parameters from the
- DOS command level or a batch file. SETPRN is similar to the BASIC LPRINT
- command, except that control codes are enclosed in square brackets ("[]")
- instead of the "CHR$()" used in BASIC. Also, text strings should not be
- enclosed in quotes. Like LPRINT, the normal carriage return/line feed can
- be suppressed by a trailing semicolon (";") or comma (","). A trailing
- semicolon will leave the print head at the end of the just printed text,
- while a comma will advance the print head to the next tab stop.
-
-
- EXAMPLES
- --------
- The following examples assume that the file SETPRN.COM is on the
- default disk drive. Note that "<enter>" means that you should press
- the enter/return key after typing the command.
-
- SETPRN Testing 0123456789 <enter>
- This command will simply print the string "Testing 0123456789" on
- the printer and drop down to the next line.
-
- SETPRN Merry Christmas; <enter>
- This command will print the string "Merry Christmas" on the printer,
- but NOT drop down to the next line. Notice the trailing ";" which
- suppresses the carriage return/line feed. On some printers, "Merry
- Christmas" may not actually be printed until an output is sent to
- the printer which contains a carriage return.
-
- SETPRN [27]E; <enter>
- This command will send Escape E to the printer. This sequence turns
- on emphasized printing on the IBM and Epson dot matrix printers.
-
- SETPRN [27]!Boldface Title[27]" <enter>
- This command will print the string "Boldface Title" in boldface on
- the C. Itoh and NEC dot matrix printers and drop down to the next
- line. With these printers, Escape ! starts boldface printing and
- Escape " stops boldface printing. Note that the quote symbol (") may
- be included in the SETPRN command line, just like any other character.
-
-
- NOTES
- -----
- Any printable character may be included in the SETPRN command line
- except the left square bracket ("["), which is used as the prefix to a
- control code. This character may be included by enclosing its ASCII code
- (91) between square brackets; that is "[91]".
-
- SETPRN should work correctly on any IBM compatible computer operating
- under MS-DOS. It should work with any version of MS-DOS, including 1.0,
- 1.05, 1.1, 2.0, and 2.1.
-
- Please send your comments to: Vincent Bly
- Post Office Box 409
- Ft. Belvoir, VA 22060